package littlewhisker.managers {
	import flash.utils.Dictionary;

	/**
	 * @author Philip
	 */
	public class XMLManager {
		private static var xmlLibrary:Dictionary;
		
		public static function addXML(xml:XML, id:String) : void {
			if(!xmlLibrary) xmlLibrary = new Dictionary(true);
			xmlLibrary[id] = xml;
		}
		
		public static function removeXML(id:String) : void {
			delete xmlLibrary[id];
		}
		
		public static function getXML(id:String) : XML {  
			return xmlLibrary[id];
        }
        
    
	}
}
